package com.openbravo.pos.printer.screen;

import com.openbravo.pos.forms.AppLocal;
import com.openbravo.pos.printer.DeviceDisplay;
import java.awt.BorderLayout;
import java.awt.Container;
import java.awt.Dimension;
import java.awt.Insets;
import javax.swing.JComponent;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;

public class DeviceDisplayWindow extends JFrame
  implements DeviceDisplay
{
  private String m_sName;
  private DeviceDisplayPanel m_display;
  private JPanel m_jContainer;

  public DeviceDisplayWindow()
  {
    initComponents();
    this.m_sName = AppLocal.getIntString("Display.Window");
    this.m_display = new DeviceDisplayPanel(3.0D);
    this.m_jContainer.add(this.m_display.getDisplayComponent());
    setVisible(true);
  }

  public String getDisplayName()
  {
    return this.m_sName;
  }

  public String getDisplayDescription()
  {
    return null;
  }

  public JComponent getDisplayComponent()
  {
    return null;
  }

  public void writeVisor(int paramInt, String paramString1, String paramString2)
  {
    this.m_display.writeVisor(paramInt, paramString1, paramString2);
  }

  public void writeVisor(String paramString1, String paramString2)
  {
    this.m_display.writeVisor(paramString1, paramString2);
  }

  public void clearVisor()
  {
    this.m_display.clearVisor();
  }

  private void initComponents()
  {
    this.m_jContainer = new JPanel();
    setTitle(AppLocal.getIntString("Display.Window"));
    this.m_jContainer.setLayout(new BorderLayout());
    this.m_jContainer.setBorder(new EmptyBorder(new Insets(5, 5, 5, 5)));
    getContentPane().add(this.m_jContainer, "Center");
    setSize(new Dimension(767, 245));
  }
}

/* Location:           D:\PowerFulPOS-2.30.2\openbravopos.jar
 * Qualified Name:     com.openbravo.pos.printer.screen.DeviceDisplayWindow
 * JD-Core Version:    0.6.0
 */